package com.dt.dubai.mall.entity;

import com.dt.dubai.core.comm.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.*;

import javax.persistence.Table;
import javax.validation.constraints.*;


/*
 * 前台与后台类目关联表
 */

@Data
@Table(name = "dt_mall_admin_category_web")
@EqualsAndHashCode(callSuper = false)
public class MallAdminCategoryWebEntity extends BaseEntity {

    //商品后台分类记录id
    @NotNull(message = "backCategoryId参数不能为空")
    Long backCategoryId;

    //商品前台分类记录id
    @NotNull(message = "frontCategoryId参数不能为空")
    Long frontCategoryId;

    //类型 1-电商,2-检测,3-计量
    Short commodityType;


}
